﻿//-------------------------------------------------------------------------------------------------
// <copyright file="BundleConfig.cs" company="Andrew Craig Keller">
//  Copyright (c) Andrew Craig Keller.  All rights reserved.
// </copyright>
//-------------------------------------------------------------------------------------------------

namespace StockQuoteWebSite
{
    using System.Web.Optimization;

    /// <summary>
    /// Registers bundles of minified scripts and styles on which views in the site may depend.
    /// </summary>
    public class BundleConfig
    {
        /// <summary>
        /// Registers the site's default script and style bundles to a given
        /// <see cref="BundleCollection"/>.
        /// </summary>
        /// <param name="bundles">
        /// the <see cref="BundleCollection"/> to which the bundles should be registered
        /// </param>
        public static void RegisterDefaultBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/js/").Include(
                "~/Content/Scripts/bootstrap.js",
                "~/Content/Scripts/jquery-{version}.js",
                "~/Content/Scripts/jquery.flot.js",
                "~/Content/Scripts/jquery.flot.time.js"));

            bundles.Add(new StyleBundle("~/css/").Include(
                "~/Content/Styles/bootstrap.css",
                "~/Content/Styles/bootstrap-theme.css",
                "~/Content/Styles/Site.css"));
        }
    }
}